package com.example.hospitalsystem.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.hospitalsystem.pojo.dto.design.AddDesignDto;
import com.example.hospitalsystem.pojo.dto.design.DesignPageQueryDto;
import com.example.hospitalsystem.pojo.entity.Design;
import com.example.hospitalsystem.result.Result;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface DesignService extends IService<Design> {

    Result<Object> addDesign(AddDesignDto addDesignDto);

    Result<Object> deleteDesignById(Integer id);

    Result<Object> getAllDesign(DesignPageQueryDto dto);

    Result<Object> getTop5Design();

    Result<Object> getTop10Design();

    Result<Object> getDetailShow(Integer id);

    Result<Object> uploadDesign(MultipartFile image) throws IOException;
}
